import pygame

cache = {}

def get_image(imagename):
    if not cache.has_key(imagename):
        cache[imagename] = pygame.image.load('../images/' + imagename + '.png').convert_alpha()
    
    return cache[imagename]
